import 'package:seedfour/generated/json/base/json_convert_content.dart';
import 'package:seedfour/app/models/message_alert_entity.dart';

MessageAlertEntity $MessageAlertEntityFromJson(Map<String, dynamic> json) {
  final MessageAlertEntity messageAlertEntity = MessageAlertEntity();
  final int? messageCnt = jsonConvert.convert<int>(json['messageCnt']);
  if (messageCnt != null) {
    messageAlertEntity.messageCnt = messageCnt;
  }
  return messageAlertEntity;
}

Map<String, dynamic> $MessageAlertEntityToJson(MessageAlertEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['messageCnt'] = entity.messageCnt;
  return data;
}

extension MessageAlertEntityExtension on MessageAlertEntity {
  MessageAlertEntity copyWith({
    int? messageCnt,
  }) {
    return MessageAlertEntity()
      ..messageCnt = messageCnt ?? this.messageCnt;
  }
}